{% extends "base.html" %}

{% block content %}
    <div class="pageHeader">
        <form onsubmit="return navTabSearch(this);" action="{{full_path}}" method="post">
            <div class="searchBar">

                <table class="searchContent">
                    <tbody><tr>

                        <td>
                            起始日期：<input type="text" class="date textInput readonly" name="dt1" value="{{dt1|date:'Y-m-d'}}" readonly="true">
                        </td>
                        <td>
                            终止日期：<input type="text" class="date textInput readonly" name="dt2" value="{{dt2|date:'Y-m-d'}}" readonly="true">
                        </td>
                    </tr>
                    </tbody></table>
                <div class="subBar">
                    <ul>
                        <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>

                    </ul>
                </div>
            </div>
        </form>
    </div>
    <div class="pageContent">
        <table class="list" width="100%"  >
            <thead>
        <tr>
            <th >填报者</th>
            <th >报表类型</th>
            <th >开始时间</th>
            <th >结束时间</th>
            <th >操作</th>
        </tr>
        </thead>
        <tbody>
        {%for todo in list.object_list%}
        <tr >
            <td >{{todo.auth_user.last_name}}</td>
            <td >{{todo.schedule_type.name}}</td>
            <td >{{todo.start_date|date:"Y-m-d"}}</td>
            <td >{{todo.end_date|date:"Y-m-d"}}</td>
            <td > <a href="/schedule/compose?" target="navTab" rel="edit_schedule" title="开始填写">填写</a></td>
        </tr>
        {%endfor%}
        </tbody>
        </table>
    </div>


        <div class="panelBar hover">
          <div class="pagination" targettype="navTab" totalcount="{{list.count}}" numperpage="10" pagenumshown="10" currentpage="{{list.number}}"></div>
        </div>

{% endblock %}